package cn.school.teacher.evaluation.service;

import cn.school.teacher.evaluation.dto.UserDto;
import cn.school.teacher.evaluation.entity.TeacherEvaluationTask;
import cn.school.teacher.evaluation.vo.req.TeacherEvaluationTaskReqVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 *
 *考评任务Service
 *
 * */
public interface EvaluationTaskService {
    IPage<TeacherEvaluationTask> getPage(Map<String, Object> params);

    int create(TeacherEvaluationTaskReqVo teacherEvaluationTaskVo);

    int deleteByIds(Long[] ids);

    TeacherEvaluationTask getById(Long id);

    int update(Long id, TeacherEvaluationTask teacherEvaluationTask);

    /**
     * 获取用户选择条件数据（用于受评人、打分人进行选择）
     * */
    IPage<UserDto> getPageByUser(Map<String, Object> params);

    IPage<UserDto> getPageByUserAndName(Map<String, Object> params);

    /**
     * 获取打分人数据：根据任务Id
     * */
    List<UserDto> getSocreUserListByEvtaId(Long id);

    /**
     * 获取受评人的用户信息
     * */
    UserDto getTetaCoverUserByUserId(Long id);
    
    /**
     * @title 获取任务
     * @author fangjin.tao
     * @updateTime 2022/12/7 11:06
     * @return: java.util.List<cn.school.teacher.evaluation.entity.TeacherEvaluationTask>
     */
	List<TeacherEvaluationTask> getTeEvTaskListByNotProcess();
}
